
public class SimpleClass
{
	private int salary;
	private String name;
	
	public SimpleClass()
	{
		this("John Doe");
	}
	
	public SimpleClass(String name)
	{
		this (name, 2000);
	}
	
	public SimpleClass (String name, int salary)
	{
	  	setName(name);
		setSalary(salary);
	}
	
	public void setSalary (int salary)
	{
		this.salary = salary;
	}
	
	public int getSalary()
	{
		return salary;
	}
	
	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	/**
	 * 
	 * 
	 */
	public static void main(String[] args)
	{

		
			
		SimpleClass sc = new SimpleClass("Chuck", 1000);
		
	
		SimpleClass another = new SimpleClass();
		
		
		System.out.println (sc.name + " makes $" + sc.salary);
		System.out.println (another.name + " makes $" + another.salary);

	}

}
